package com.yiwyn.springbean.service;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class UserService {


    public User getUser(String userId) {
        log.info("userId:{}", userId);
        return new User(userId, "dept" + userId);
    }

    @Data
    @AllArgsConstructor
    public static class User {
        private String name;
        private String deptId;
    }


}
